package com.yfp.group.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yfp.common.core.text.BigDecimalSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 订单管理 订单列表展示类
 */
@Data
public class EnterpriseOrderListVO implements Serializable {

    private static final long serialVersionUID = 5293581562195486322L;

    /**
     * 订单号
     */
    @Schema(description = "订单号")
    private String orderSn;

    /**
     * 下单时间
     */
    @Schema(description = "下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 订单状态
     */
    @Schema(description = "订单状态[1待支付、2已支付、3已退款、4部分退款、5已完成、6已取消]")
    private Integer payStatus;

    /**
     * 支付金额
     */
    @Schema(description = "支付金额")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal payMoney;

    /**
     * 订单详情
     */
    @Schema(description = "订单详情")
    List<EnterpriseOrderDetailVO> enterpriseOrderDetailVOS;

    /**
     * 购买套餐总数量
     */
    @Schema(description = "购买套餐总数量")
    private Integer totalComboNum;

    /**
     * 二维码按钮是否展示
     */
    @Schema(description = "二维码按钮是否展示")
    private Boolean qrCodeShow;

}
